package home_4_8;

public class CE_math {
    public static void main(String[] args) {
        Mymath p1=new Mymath();
//        初始化变量
        p1.setNum(12);
        p1.setShu(66);
        p1.jia();
//       加法并且输出
        System.out.print(p1.getNum()+"+"+"\t");
        System.out.print(p1.getShu()+"\t"+"=");
        System.out.print(p1.getZong()+"\n");
//        乘法输
        p1.cheng();
        System.out.print(p1.getNum()+"*"+"\t");
        System.out.print(p1.getShu()+"\t"+"=");
        System.out.print(p1.getZong()+"\n");
//        除法输出
        p1.chu();
        System.out.print(p1.getShu()+"/"+"\t");
        System.out.print(p1.getNum()+"\t"+"=");
        System.out.print(p1.getZong()+"\n");
//        减法输出
        p1.jian();
        System.out.print(p1.getShu()+"-"+"\t");
        System.out.print(p1.getNum()+"\t"+"=");
        System.out.print(p1.getZong()+"\n");
    }
}
